class FatantsController < ApplicationController
  active_scaffold :fatant do |config|
    config.label = "Faturamento Anterior"
    config.theme = :blue
    
    config.list.columns = [:data_nova,:fatantdepos]
    config.update.columns = [:data,:fatantdepos]
    config.create.columns = [:data,:fatantdepos]
    config.show.columns = [:created_at, :data,:fatantdepos]
    
    config.columns[:data].description = "Data do Faturamento"
    config.columns[:data].label = "DATA"
    config.columns[:created_at].label = "CRIADO EM"
    config.columns[:fatantdepos].label = "FATURADO"
    
    config.create.link.label = "NOVO"
    config.search.link.label = "BUSCA"
    config.show.link.label = "Detalhes"
    config.delete.link.label = "Apagar"
    config.delete.link.confirm = "Apagar?"
    
    config.list.sorting = [{:data => 'DESC'}]
  end
end
